/*******************************************************************************
 * Copyright (c) 2006, 2010 IBM Corporation and others.
 *
 * This program and the accompanying materials 
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

/* 
 * Set up general fonts, sizes and colors 
 */
body { font-family : Arial, sans-serif; }

H1, H2, H3, H4, p, a { color : #4D4D4D; }

 body {
	background-color : #FFFFFF;
}

/* The label part of the folding section */
.section-title-link .section-title {
	display : inline;
}

h2 {
	font-weight : normal;
	color : #7B8694;
}

/* For regular div labels */
H4 .div-label {
	font-family: Verdana, Arial, Helvetica; 
	font-weight: bold; 
	color: #4A4D4A; 
	line-height:1.3;
}

/* For the main page content's title */
#content-header H4 .div-label {
	font-family: Verdana, Arial, Helvetica;
	color:white; 
	font-weight: normal; 
	letter-spacing:-0.03em;
	/* Bug 492993: use !important to prevent header text overflowing on zoom */ 
	font-size: 31px !important;
}

/* For separators */
HR {
	width: 90%;
	align: left;
	height : 1px;
	color :  #dfdfe4;
}

/* Page description if the page has it. */
.page-description {
	display: block;
	font-family: Verdana, Arial, Helvetica; 
	line-height:1.3;
	float : none;
	clear : both;
	margin-left: 70px;
	position : relative;
	top : -25px;
}

a {
	font-weight : bold;
	text-decoration : none;
	color : #4D4D4D;
}

a:hover  {
	color: #69c; 
}

/* General link labels */
a .link-label {
	font-weight : normal;
}

/* Floating link labels for navigation links */
#navigation-links a .link-label,
#action links a .text {
	color : white;
}

#navigation-links a#overview:hover .link-label
{
    color : #FFEC89;
}

#navigation-links a#tutorials:hover .link-label,
#navigation-links a#samples:hover .link-label
{
    color : #ACCCE9;
}

#navigation-links a#whatsnew:hover .link-label,
#navigation-links a#firststeps:hover .link-label
{
    color : #E5CD89;
}

#navigation-links a#webresources:hover .link-label ,
#navigation-links a#migrate:hover .link-label
{
    color : #BCD77C;
}

#action-links a:hover .link-label {
    color : E0DFE3;
}

/* Text in links. */
a .text {
	font-weight : normal;
}

p .group-description {
	font-family: Verdana, Arial, Helvetica; 
	font-weight : normal;
}

/* Hide the extra div in links by default. */
.link-extra-div {
	display : none;
}

/* 
 * Set up other general properties like padding/margins
 */
html, body { width : 100%; height : 100%; }

html, body, div, h1, h4, p, a { margin : 0px; padding : 0px; }


/* Needed in IE to get shift+tab to show the active image properly */
a:active {
	border : solid 0px;
}

a img {
	border-width : 0;
}

/*
 * to get scrollbars working in both IE and Mozilla
 */
html,body { overflow: auto; }
html>body { overflow: visible; }


/***********************************************************\
 * Setup the top-level branding 
\***********************************************************/

/*
 * We either use the intro-header OR we use content-header
 */
.intro-header {
	display : none;
}

/*
 * Hide the general-purpose groups - not using them in this theme
 * except for the root page
 */
#extra-group1,
#extra-group2,
#extra-group3,
#extra-group4,
#extra-group5 {
	display : none;
}

/*
 * Dimensions.
 */
body, .page {
	/* since IE doesn't support min-width, try expression */
	height : 100%;
}

.page {
	background-repeat : no-repeat;
	background-position : top left;
	
	min-width : 770px;
	width:expression(document.body.clientWidth < 770? "770px": "auto" );
    min-height : 425px;
	height : expression(document.body.clientHeight < 425? "425px": "100%" );
}


.intro-header, #content-header {
	position: relative;
	
	height: 50px;
    margin-bottom: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 8%;

    background-image : url("../graphics/contentpage/breadcrumbs-large-bg.jpg");
	background-position : top left;
	background-repeat : repeat-x;
}


/* 
 * Lay out the navigation links 
 * (Root page does something similar for its navigation)
 */
#navigation-links {
	position:absolute;
	top: 0px;
	right: 0px;
	padding-right: 20px;
	z-index: 100;
}

#navigation-links #page-links, #navigation-links #action-links {
	display: inline;
}

#navigation-links a {
	height : 64px;
	float : left;
	margin-left : 10px;
	position : relative;
}

#action-links a {
    float : right;
}

#navigation-links a img {
	/*max-height : 32px;*/
	height: 32px;
	width: 32px;
	vertical-align: center;
	horizontal-align: center; 
	display : block;
	margin-top: 10px;
	margin-bottom: 0px;
	margin-left: auto;
	margin-right: auto;
}

#navigation-links a.high-contrast img {
	margin-bottom : 0px;
}


/*
 * Not showing description for navigation links.
 */
#navigation-links a .text { display : none; }

/* properties for each of the navigation-links  */
#navigation-links a#overview img { 
	background: url(../graphics/icons/ctool/overview.png) center/contain no-repeat; 
}

#navigation-links a#firststeps img { 
	background: url(../graphics/icons/ctool/firststeps.png) center/contain no-repeat; 
}

#navigation-links a#tutorials img { 
	background: url(../graphics/icons/ctool/tutorials.png) center/contain no-repeat; 
}

#navigation-links a#samples img { 
	background: url(../graphics/icons/ctool/samples.png) center/contain no-repeat; 
}

#navigation-links a#whatsnew img { 
	background: url(../graphics/icons/ctool/whatsnew.png) center/contain no-repeat; 
}

#navigation-links a#migrate img { 
	background: url(../graphics/icons/ctool/migrate.png) center/contain no-repeat; 
}

#navigation-links a#webresources img { 
	background: url(../graphics/icons/ctool/webresources.png) center/contain no-repeat; 
}

#navigation-links a#workbench img { 
	background: url(../graphics/icons/ctool/workbench.png) center/contain no-repeat; 
}

#action-links a {
	text-align : center;
}

#action-links a.high-contrast .link-label {
	display: none;
}

#navigation-links a.high-contrast .background-image {
	display: none;
}

#page-links a.high-contrast:focus .link-label,
#page-links a.high-contrast:active .link-label {
	display: block !important;
	text-decoration: underline;
	top : 5px;
}

#page-links span {
    display : block;
}

/* 
 * Lay out the page title and description 
 */

/* position the page content so that the page title overlays the bottom
 * of the background image, but make sure the content is always on top 
 * (using z-index) */

#page-content {
	float : none;
	clear : both;
	position : relative;
	z-index : 10;
}

#page-content p { 
	padding-bottom : 15px; 
	text-align : left; 
	float : none;
	clear : both;
}

/* Page content quadrants. Page content is placed in four quadrants.
 * Upper pair is separated from the bottom pair with a divider
 * to ensure bottom pair is aligned even with the uneven content
 * in the upper pair.
 */

#page-content #top-left {
  border: none; float: left; margin: 0px; padding: 0px; margin-left: 8%; width: 40%;
  clear: left;
  position: relative;
}
#page-content #top-right {
  border: none; float: right; margin: 0px; padding: 0px; margin-right: 8%; width: 40%;
  clear: right;
  position: relative;
}
/* top-bottom divider - runs the entire width to ensure
 * bottom boxes start at the same y
 */
#page-content #content-divider {
  border: none; float: none; margin: 0; padding: 0px; width: 100%;
  clear: both;
}

#page-content #bottom-left {
  border: none; float: left; margin: 0px; padding: 0px; margin-left: 8%; width: 40%;
  clear: left;
  position: relative;
}
#page-content #bottom-right {
  border: none; float: right; margin: 0px; padding: 0px; margin-right: 8%; width: 40%;
  clear: right;
  position: relative;
}

#page-content #content-header H4, .page-description {
	text-align : left;
	margin-right : 10px;
	float : none;
	clear : both;
}



/* The following rules are for extensions in all pages. Extensions should be placed in
 * groups with the style 'content-group' and contain links with the style 'content-link'.
 * Group is important so that importance mixin style can be applied to the group that
 * uses block display. We need to see a solid rectangle around the extension, not 
 * a tight polygon around the link perimeter.
 */

.content-group {
	float : none;
	clear : both;
	text-align: left;
}

.content-link {
	display: block;
	margin-bottom : 20px;
	min-height: 5em;
	padding-left: 60px;	/* image will be placed here */
	position:relative;
}

.content-link img.background-image, .content-link img.content-img {
	width: 32px;
	height : auto;
	
	/* position image to the left of the text */
	position:absolute;
	left: 0px;
	top: 0px;
	
	background-size:     cover;
	background-repeat:   no-repeat;
	background-position: center center;
}


#page-content * a:hover { border-right : 5px; }

.content-link .link-label {
	font-family: Verdana, Arial, Helvetica; 
	line-height:1.5;
	color: #F59616;
}

.content-link:hover .link-label {
	text-decoration : underline;
}
.content-link:hover .link-label {
	color: #69c; 
	text-decoration : underline;
}

.content-link .text {
	font-family: Verdana, Arial, Helvetica; 
	line-height: 1.3;
}

.categoryContentnav {
	font-family: Verdana, Arial, Helvetica; 
	font-weight: bold; 
	color: #4A4D4A; 
	line-height:1.3;
}

.contentpgNavhover {
	font-family: Verdana, Arial, Helvetica; 
	font-weight: bold; 
	color: #000; 
}

.topicList {
	font-family: Verdana, Arial, Helvetica; 
	line-height:1.75;
	color: #00507C;
}

.topicList:hover {
	color: #69c;
}


.rss-feed-link a {
	font-family: Verdana, Arial, Helvetica; 
	color: #00507C;
}

/*
 * This part is for hosting embedded document inside
 * the content area.
 */

iframe {
	position:relative;
	top:16px;
	width:100%;
	height:100%;
	padding-left:10px;
}

/* mozilla scrollbar appearing off page fix */
#page-content > iframe {
	width: 98%;
	padding-left: 2%;
}


@media (prefers-color-scheme: dark) {
  .page { 
    background-color:#3d3d3d;
  }

  body .importance-low {
    background-color:#3d3d3d;
  }

  H1, H2, H3, H4, p, a {
    color: #f0f0f0;
  }

  H4 .div-label {
    color: #f0f0f0; 
  }

  .topicList {
    color: #69c;
  }

  .rss-feed-link a {
    color: #69c;
  }

  .section-title-link .section-title,
  .section-title-link:focus .section-title {
    color: #69c;
  }

}